const Layout = () => import('@/layout/index.vue')

export default [{
  path: '/user',
  name: 'User',
  meta: { title: '会员中心', icon:'UserFilled' },
  component: Layout,
  children: [{
          path: '/user-list',
          name: 'UserList',
          component: () => import ('@/views/user/userList/index.vue'),
          meta: { title: '会员信息', role: ['number_index'], icon:'User' }
      },
      // {
      //     path: 'code-list',
      //     name: 'CodeList',
      //     component: () =>
      //         import ('@/views/user/code-list/index'),
      //     meta: { title: '用户邀请', icon: 'table', role: ['number_codeIndex'] }
      // },
      {
          path: '/forbid-user-list',
          name: 'ForbidUserList',
          component: () => import ('@/views/user/SealList/index.vue'),
          meta: { title: '封禁账号', role: ['numbers_forbidusers'], icon:'Menu' }
      },
      {
          path: '/user/Samerealname',
          name: 'accountNumber',
          component: () => import ('@/views/user/SealList/Samerealname.vue'),
          meta: { title: '实名查询', role: ['account_number'], icon:'Menu' }
      },
      {
          path: '/user/forbidDevice',
          name: 'ForbidDevice',
          component: () => import ('@/views/user/forbidDevice/index.vue'),
          meta: { title: '登录设备查询', role: ['numbers_forbiddevice'], icon:'Menu' }
      },
      {
          path: '/user/userLogout',
          name: 'userLogout',
          component: () => import ('@/views/user/userLogout/index.vue'),
          meta: { title: '账户注销', role: ['user-account-cancel-log'], icon:'WarnTriangleFilled' }
      },
      {
          path: '/user/ipwhiteList',
          name: 'userIpwhiteList',
          component: () => import ('@/views/user/userList/iplist.vue'),
          meta: { title: '账号IP', role: ['user_ipgetusertags'] }
      },
      {
        path: '/userdetail',
        name: 'Userdetail',
        meta: { title: '流水记录', icon:'Histogram' },
        children: [
          {
            path: '/recharge-record',
            name: 'RechargeRecord',
            meta: { title: '充值流水', role:['number_userWithdrawRecord'] },
            component: () => import('@/views/user/userList/rechargeinfo.vue')
          },
          {
            path: '/gold-record',
            name: 'GoldRecord',
            meta: { title: '金币流水', role:['number_userKkRecord'] },
            component: () => import('@/views/user/userList/goldInfo.vue')
          },
          {
            path: '/wealth-record',
            name: 'WealthRecord',
            meta: { title: '财富值流水', role:['number_userWealthRecord']},
            component: () => import('@/views/user/userList/wealthInfo.vue')
          },
          {
            path: '/charm-record',
            name: 'CharmRecord',
            meta: { title: '魅力值流水', role:['number_userCharmRecord'] },
            component: () => import('@/views/user/userList/charmInfo.vue')
          },
          {
            path: '/diamond-record',
            name: 'DiamondRecord',
            meta: { title: '钻石流水', role:['number_userDiamondRecord'] },
            component: () => import('@/views/user/userList/diamondInfo.vue')
          },
        ]
      },
      {
        path: '/blackList',
        name: 'BlackList',
        component: () => import('@/views/user/blackList/index.vue'),
        meta: { title: '聊天权限黑名单', role: ['blackList_index']}
      },
      {
        path: '/agentList',
        name: 'AgentList',
        component: () => import('@/views/user/agent/index.vue'),
        meta: { title: '红包赠钻用户', role: ['agent_userList']}
      },
      {
        path: '/agentLogList',
        name: 'AgentLogList',
        component: () => import('@/views/user/agent/logList.vue'),
        meta: { title: '赠钻记录', role: ['agent_logList']}
      },
      {
        path: '/agentDiamondLogList',
        name: 'AgentDiamondLogList',
        component: () => import('@/views/user/agent/diamondLogList.vue'),
        meta: { title: '用户赠钻明细', role: ['agent_diamondLogList']}
      },
    {
      path: '/agentGolodList',
      name: 'AgentGolodList',
      component: () => import('@/views/user/agentGolod/index.vue'),
      meta: { title: '红包赠币用户', role: ['agent_userGolodList']}
    },
    {
      path: '/agentGolodLogList',
      name: 'AgentGolodLogList',
      component: () => import('@/views/user/agentGolod/logList.vue'),
      meta: { title: '赠币记录', role: ['agent_logGolodList']}
    },
    {
      path: '/agentGolodKKLogList',
      name: 'AgentGolodKKLogList',
      component: () => import('@/views/user/agentGolod/diamondLogList.vue'),
      meta: { title: '用户赠币明细', role: ['agent_GolodKKLogList']}
    },
      // {
      //   path: '/chatfriendList',
      //   name: 'ChatfriendList',
      //   component: () => import('@/views/user/chatfriend/index.vue'),
      //   meta: { title: '交友墙名片审核', role: ['chatfriend_list']}
      // },
  ]
},]
